package com.mall.vo;

import com.mall.domain.SmsHomeBrand;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SmsHomePageBeanVo implements Serializable {
    private Integer pageNum;
    private Integer pageSize;
    private Long total;
    private Long totalPage;
    private List<?> list;

    public SmsHomePageBeanVo(Integer pageNum, Integer pageSize, Long total, List list) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.list = list;
        this.total = total;
        this.totalPage = total % this.pageSize == 0 ? (total / this.pageSize) : (total / this.pageSize) + 1;
    }


}
